﻿
@{
    ViewBag.Title = "PlanFormDetail";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}


@{
    ViewBag.Title = "IssueReportAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}

@section css {
    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <style>
        th {
            text-align: center;
            font-weight: bold;
        }

        td {
            text-align: center;
            vertical-align: middle;
        }
        .center {
            position: fixed;
            top: 50%;
            left: 50%;
            background-color: #000;
            width: 800px;
            -webkit-transform: translateX(-50%) translateY(-50%);
            -moz-transform: translateX(-50%) translateY(-50%);
            -ms-transform: translateX(-50%) translateY(-50%);
            transform: translateX(-50%) translateY(-50%);
            border-radius: 3px;
        }

        .removeImage {
            position: relative;
            right: -55px;
            top: -12px;
            float: left;
            font-weight: bold;
            color: red;
        }
    </style>
}
<div class="page-content" ng-cloak ng-controller="EmergencyController" ng-init="
     Id='@(Request.QueryString["Id"].IsEmpty() ? "" : Request.QueryString["Id"])';
     page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';
     PageName='@Request.CurrentExecutionFilePath.Substring(Request.CurrentExecutionFilePath.LastIndexOf("/") + 1)';

     GetPlanFormDetail(Id);
     ">
    <div class="load" ng-show="DataLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />

			</path>
		</svg>
            <div class="load-msg" ng-bind="LoadingMsg"></div>
        </div>
    </div>
    <div class="load" id="previewimg" ng-show="IsPreview" ng-click="ClosePreview();">
        <img id="imgshow" class="center" />
    </div>
    <div class="page-heading">
        <h1>应急预案详细</h1>
        <div class="options">
            <div class="btn-toolbar">

            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li><a>主体业务</a></li>
        <li><a>应急管理</a></li>
        <li><a>应急预案</a></li>
        <li class="active"><a>应急预案详细</a></li>
    </ol>

    <div class="container-fluid">
        <div class="row">
            <form class="form-horizontal row-border">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading"><h2>添加应急预案</h2></div>
                        <div class="panel-body">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">制定部门：</label>
                                <div class="col-sm-8">
                                    <select id="dep_select" class="selectpicker show-tick form-control" ng-model="PlanFormDetail.DepartmentId" data-live-search="true" disabled>
                                        <option value="" selected>请选择制定部门</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">类型：</label>
                                <div class="col-sm-3">
                                    <label>
                                        <label class="radio-inline">
                                            <input type="radio" id="inlineradio2" name="Type" ng-checked="PlanFormDetail.TypeId==1" ng-click="PlanFormDetail.TypeId=1" disabled>公用
                                        </label>
                                        <label class="radio-inline">
                                            <input type="radio" id="IsTemporary" name="Type" ng-checked="PlanFormDetail.TypeId==2" ng-click="PlanFormDetail.TypeId=2" disabled>专项
                                        </label>
                                    </label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">所有用户可见：</label>
                                <div class="col-sm-4">
                                    <label>
                                        <label class="radio-inline">
                                            <input type="radio" id="IsPublic1" checked name="IsPublic" ng-click="PlanFormDetail.IsPublic = true;" ng-checked="PlanFormDetail.IsPublic" disabled>是
                                        </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <label class="radio-inline">
                                            <input type="radio" id="IsPublic2" name="IsPublic" ng-click="PlanFormDetail.IsPublic = false;" ng-checked="!PlanFormDetail.IsPublic" disabled>否
                                        </label>
                                    </label>
                                </div>
                            </div>
                            <div class="form-group" ng-show="!PlanFormDetail.IsPublic">
                                <label class="col-sm-1 control-label">关联场所：</label>
                                <div class="col-sm-8">
                                    <select id="place_select" class="selectpicker show-tick form-control" ng-model="PlanFormDetail.PlaceIdList" multiple data-live-search="true" disabled>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">有效期：</label>
                                <div class="col-sm-8">
                                    <input id="startTime" option="datetimeOption" class="form-control" format="L" ng-model="PlanFormDetail.ValidDate" disabled />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">版本号：</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="PlanFormDetail.Version" maxlength="500" disabled />
                                </div>

                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">关键字：</label>
                                <div class="col-sm-8">
                                    <input type="text" ng-model="PlanFormDetail.Keywords" class="form-control" disabled />
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label">摘要：</label>
                                <div class="col-sm-8">
                                    <textarea type="text" ng-model="PlanFormDetail.Summary" placeholder="总结概要" rows="8" maxlength="1000" disabled class="form-control"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">备注：</label>
                                <div class="col-sm-8">
                                    <input type="text" class="form-control" ng-model="PlanFormDetail.Remark" ng-init="AddModel.Remark=''" maxlength="500" disabled />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">导引图：</label>
                                <div class="col-sm-8">
                                    <img ng-click="ShowPicture(PlanFormDetail.DiagramFile.FilePath);" ng-src="{{PlanFormDetail.DiagramFile.FilePath}}" width="50" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">附件：</label>
                                <div class="col-sm-8">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr style="background-color:blueviolet;">
                                                <th style="width:5%">序号</th>
                                                <th style="width:30%">文件名称</th>
                                                <th style="width:10%">文件大小(kb)</th>
                                                <th style="width:10%">操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <tr ng-show="PlanFormDetail.FileList.length==0">
                                                <td colspan="4" style="text-align:center;vertical-align:middle;line-height:30px;">没有数据</td>
                                            </tr>
                                            <tr ng-repeat="x in PlanFormDetail.FileList">
                                                <td ng-bind="$index+1"></td>
                                                <td ng-bind="x.FileName"></td>
                                                <td ng-bind="x.FileSize"></td>
                                                <td>
                                                    <a href="../Download/DownloadFile?FileId={{x.FileId}}" class="btn btn-success btn-xs btn-label"><i class="fa fa-download"></i>下载</a>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="panel-footer">
                                <div class="col-sm-2">

                                </div>

                                <div class="col-sm-2">
                                    <a href="PlanFormPageList?page={{page}}" class="btn btn-default">返回</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>


@section Js{
    <script src="~/Assets/js/pg/Emergency.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
    <script src="~/Assets/js/libs/moment.min.js"></script>
    <script src="~/Assets/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Assets/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Assets/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Assets/js/libs/fileinput.js"></script>
    <script src="~/Assets/js/libs/zh.js"></script>
    <script>
        $('#docfiles').fileinput({
            language: 'zh'
        });
        $(".selectpicker").selectpicker({

            noneSelectedText: '请选择'//默认显示内容

        });
    </script>
}




